home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / UsingPDF / GhostScript / source / gs5.10 / gs5.03 / Amiga-vs-gcc-Notes next >
Encoding:
Text File  |  1998-01-08  |  4.1 KB  |  123 lines

  1.  
  2.  
  3. This makefile appears to work after enough tries that I thought I was
  4. going to do the 100,000 monkeys thing all by myself.
  5.  
  6. Assuming a directory tree of
  7.  
  8.                 /GS5.10
  9.     /jpeg-6a    /libpng-0.96    /zlib-1.0.4
  10.  
  11. with all GS source in GS5.10 and an assign to it, here is the current
  12. build_gs script:
  13. ----------------
  14. assign ghostscript: ghost:ghostscript/gs5.10
  15. assign GSBIN: Ghost:ghostscript/5.10
  16. date >GSBIN:Build_All_Start
  17. delete gs_000 gs_000.1 gs_020 gs_020.1 gs_040sf gs_040fpu
  18. IF NOT EXISTS gs_000
  19.     echo Building gs_000
  20.     make clean
  21.     date >GSBIN:Build_000_begin
  22.     make "FPU_TYPE=0" "GS=gs_000" "XLDFLAGS=-noixemul" "XCFLAGS=-m68000"
  23.     strip gs_000
  24.     copy gs_000 GSBIN:
  25.     date >GSBIN:Build_000_Done
  26. ENDIF
  27. IF NOT EXISTS gs_020.1
  28.     echo Building gs_020
  29.     make clean
  30.     date >GSBIN:Build_020_Start
  31.     make "FPU_TYPE=1" "GS=gs_020" "XLDFLAGS=-noixemul" "XCFLAGS=-m68020"
  32.     strip gs_020
  33.     copy gs_020 GSBIN:
  34.     date >GSBIN:Build_020_Done
  35. ENDIF
  36. IF NOT EXISTS gs_020fpu
  37.     echo Building gs_020fpu
  38.     make clean
  39.     date >GSBIN:Build_020fpu_Start
  40.     make "FPU_TYPE=2" "GS=gs_020fpu" "XLDFLAGS=-noixemul" "XCFLAGS=-m68020 -m68881"
  41.     strip gs_020fpu
  42.     copy gs_020fpu GSBIN:
  43.     date >GSBIN:Build_020fpu_Done
  44. ENDIF
  45.  
  46. ;make "FPU_TYPE=1" "GS=gs_030"    "XLDFLAGS=-noixemul" "XCFLAGS=-m68030"
  47. ;strip gs_030
  48. ;copy gs_030 Ghostscript:
  49. ;make clean
  50.  
  51. ;make "FPU_TYPE=2" "GS=gs_030fpu" "XLDFLAGS=-noixemul" "XCFLAGS=-m68030 -m68881"
  52. ;strip gs_040fpu
  53. ;copy gs_030fpu Ghostscript:
  54. ;make clean
  55.  
  56. ; Note, the gs_040sf code generated is identical to the gs_020 code, so
  57. ; there isn't much use doing it twice!
  58. ;
  59. ;IF NOT EXISTS gs_040sf
  60. ;    echo Building gs_040sf
  61. ;    make clean
  62. ;    date >GSBIN:Build_040sf_Start
  63. ;    make "FPU_TYPE=1" "GS=gs_040sf" "XLDFLAGS=-noixemul" "XCFLAGS=-m68040 -msoft-float"
  64. ;    strip gs_040sf
  65. ;    copy gs_040sf GSBIN:
  66. ;    date >GSBIN:Build_040sf_Done
  67. ;ENDIF
  68. IF NOT EXISTS gs_040fpu
  69.     echo Building gs_040fpu
  70.     make clean
  71.     date >GSBIN:Build_040fpu_Start
  72.     make "FPU_TYPE=2" "GS=gs_040fpu" "XLDFLAGS=-noixemul" "XCFLAGS=-m68040 -m68881"
  73.     strip gs_040fpu
  74.     copy gs_040fpu GSBIN:
  75.     date >GSBIN:Build_040fpu_Done
  76. ENDIF
  77. make clean
  78. date >GSBIN:Build_All_Done
  79. ---------------------
  80.  
  81. What I found that fixed the pathnames problem was partially my fault!  When
  82. I couldn't get it to work, and you have that copy if its not been deleted,
  83. I started through the makefile adding comments as to what the 'strcat'ing
  84. should have made out of the path at that point in the file.
  85.  
  86. Which was neat I thought.  Silly me.
  87.  
  88. Once I started comparing what I was getting in the object to what I had in
  89. the makefile, two things jumped out at me.  The first being that the :
  90. character is apparently the make/gcc end of pathlist marker, and it
  91. automaticly inserts a space after the : before continueing on with the rest
  92. of the pathlist.
  93.  
  94. Now, I can't find it in any of the docs, but I litteraly dreamed something
  95. about using single quotes around such strings in order to hide them from
  96. that rule, wherever it is.  I had to do some experimenting to see what
  97. actually worked, and the string that needs protected is apparently those in
  98. the $(reference) style, requiring that they be '$(reference)' when used.
  99. This is for 
  100.  
  101. reference = Ghostscript:
  102.  
  103. Ok, that was high jump #1.  I have used a binary editor, FileX2.0, to
  104. adjust these strings in the object until they did work, but thats a hell of
  105. a way to run a railroad IMO.
  106.  
  107. So after getting a good compile for gs_000 except for the fact that a good
  108. looking set of search paths in the --help screen didn't = working, It can
  109. find its fonts code.
  110.  
  111. So the binary editor gets called out for overtime again.  And I fixed it
  112. again so it worked, this time by zeroing out a string of tabs (0x09's)
  113. after the default pathlists, which were displayed spread out all over the
  114. width of a picasso screen.
  115.  
  116. It finally glommed on me that the tabs I was using to tab over to the
  117. comment character column were being included as part of the pathlist strings!
  118.  
  119. Sooo, my comments hit the bin, sort of.  They got moved to the line above
  120. and a return is now the next character after the last character of the
  121. pathlists.  The script above has just now been restarted, so it'll be a few
  122. hours before I know that this positively worked.
  123.